package org.sgx.gwtjsutiljsfcgenerator;

import java.util.Iterator;
import java.util.List;

public class JSFCContext {
	
	String packageName;
	String className;
	List<String> paramType;
	String paramTypeString1;
	String paramList1;
	List<String> paramName;
	String returnType;

	public JSFCContext() {
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public List<String> getParamType() {
		return paramType;
	}

	public void setParamType(List<String> paramType) {
		this.paramType = paramType;
		Iterator<String> it = paramType.iterator();
		String s = "", s2="";
		int i = 0;
		while (it.hasNext()) {
			String t = (String) it.next();
			s+=t+" arg"+i;
			s2+="arg"+i; 
			if(it.hasNext()) {
				s+=", ";
				s2+=", "; 
			}
			i++;
		}
		setParamTypeString1(s);
		setParamList1(s2); 
	}

	public List<String> getParamName() {
		return paramName;
	}

	public void setParamName(List<String> paramName) {
		this.paramName = paramName;
	}

	public String getReturnType() {
		return returnType;
	}

	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getParamTypeString1() {
		return paramTypeString1;
	}

	public void setParamTypeString1(String paramTypeString1) {
		this.paramTypeString1 = paramTypeString1;
	}

	public String getParamList1() {
		return paramList1;
	}

	public void setParamList1(String paramList1) {
		this.paramList1 = paramList1;
	}

	
}
